Drop gtk_button_clicked
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 May 2019 18:23:10 +0000 (14:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 May 2019 18:33:41 +0000 (14:33 -0400)
This is not an api we want to propagate anymore.
If you need to, you can still emit the "clicked"
action signal on a button using g_signal_emit_by_name.

docs/reference/gtk/gtk4-sections.txt
gtk/gtkbutton.c
gtk/gtkbutton.h

index 93cfc5fc20ce1f70ff24670d47b0503f3b4ff9ca..de3797b0929e9b6218672e2f15f8f0506a54feb6 100644 (file)
@@ -537,7 +537,6 @@ gtk_button_new
 gtk_button_new_with_label
 gtk_button_new_with_mnemonic
 gtk_button_new_from_icon_name
-gtk_button_clicked
 gtk_button_set_relief
 gtk_button_get_relief
 gtk_button_get_label
index 7d20cb0873d13735b059702dd0178171ce92c796..f58517656e53f6d28612c9a53958be08fcfdb6a9 100644 (file)
@@ -646,20 +646,6 @@ gtk_button_new_with_mnemonic (const gchar *label)
   return g_object_new (GTK_TYPE_BUTTON, "label", label, "use-underline", TRUE,  NULL);
 }
 
-/**
- * gtk_button_clicked:
- * @button: The #GtkButton you want to send the signal to.
- *
- * Emits a #GtkButton::clicked signal to the given #GtkButton.
- */
-void
-gtk_button_clicked (GtkButton *button)
-{
-  g_return_if_fail (GTK_IS_BUTTON (button));
-
-  g_signal_emit (button, button_signals[CLICKED], 0);
-}
-
 /**
  * gtk_button_set_relief:
  * @button: The #GtkButton you want to set relief styles of
index 51f9bac0a7ee84ea74dedcd88b5a60d1af00590d..c6a31b64ca2821243ebaa4dc8ceb240dfce7d71d 100644 (file)
@@ -88,8 +88,6 @@ GDK_AVAILABLE_IN_ALL
 GtkWidget*     gtk_button_new_from_icon_name (const gchar    *icon_name);
 GDK_AVAILABLE_IN_ALL
 GtkWidget*     gtk_button_new_with_mnemonic (const gchar    *label);
-GDK_AVAILABLE_IN_ALL
-void           gtk_button_clicked           (GtkButton      *button);
 
 GDK_AVAILABLE_IN_ALL
 void                  gtk_button_set_relief         (GtkButton      *button,